# -*- coding: utf-8 -*-

import pandas as pd
import numpy as np


def test():
    series: pd.Series = pd.Series(data=['a', 'b', 'c', ], index=[1, 2, 3, ], dtype=object, name='series', )
    print(series.str.cat(sep=','))
    pass


def test01():
    series: pd.Series = pd.Series(data=[1.2, 3.5, 2.7, float('nan'), ], name='series', )
    s: pd.Series = pd.Series(data=['a', 'b', 'c', np.nan, ], name='s', )
    # df = pd.DataFrame(data=[series, s])
    df = pd.concat([series, s], axis=1)
    series.fillna(0, inplace=True)
    df.fillna(value={'series': 0, 's': ''}, inplace=True)
    pass


def test02():
    s1: pd.Series = pd.Series(data=[1.2, 3.5, None, float('nan'), ], name='s1', )
    s2: pd.Series = pd.Series(data=[1.2, None, float('nan'), 2.7, ], name='s2', )



    pass


if __name__ == '__main__':
    # test()
    # test01()

    test02()

    pass
